package com.zjp.attendance.enums;

import lombok.Getter;

@Getter
public enum CmdCode {

    OK("OK", "OK"),

    RECEIVE_CMD("receive_cmd", "接收命令"),

    ERROR_NO_COM("ERROR_NO_CMD", "无命令处理"),

    GET_DEVICE_INFO("GET_DEVICE_INFO", "获取设备基本信息"),

    GET_USER_ID_LIST("GET_USER_ID_LIST", "获得注册人员列表"),

    SET_USER_INFO("SET_USER_INFO", "向考勤机同步写入用户信息"),

    GET_USER_INFO("GET_USER_INFO", "从考勤机获取用户登记信息"),

    DELETE_USER("DELETE_USER", "删除人员"),

    GET_LOG_DATA("GET_LOG_DATA", "获取记录数据"),

    CLEAR_LOG_DATA("CLEAR_LOG_DATA", "删除所有记录数据"),

    SET_TIME("SET_TIME", "同步时间"),

    RESET_FK("RESET_FK", "机器重新启动"),

    CLEAR_MANAGER("CLEAR_MANAGER", "清除设备管理员"),

    GET_DEVICE_SETTING("GET_DEVICE_SETTING", "获取设备参数"),

    RESET_DEVICE("RESET_DEVICE", "恢复出厂设置"),

    RESET_ENROLL_MARK("RESET_ENROLL_MARK", "重置实时登记数据标志"),

    RESET_LOG_MARK("RESET_LOG_MARK", "重置实时打卡数据标志"),

    // 设备 推送
    REALTIME_G_LOG("realtime_glog", "实时打卡记录传输"),

    REALTIME_ENROLL_DATA("realtime_enroll_data", "实时登记数据传输"),

    SEND_CMD_RESULT("send_cmd_result", "发送命令结果"),
    ;
    private final String code;

    private final String name;

    CmdCode(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
